part of authorized_login;

class UserEntity {
  String? username;
  String? password;
  String loginProvider;
  String providerKey;
  String? email;
  String displayName;
  String? imgUrl;
  String? familyName;
  String? givenName;
  String? birthday;
  bool sex;
  String? telephone;

  UserEntity({
    this.password,
    this.birthday,
    this.displayName = 'User',
    this.email,
    this.familyName,
    this.givenName,
    this.imgUrl,
    this.loginProvider = '',
    this.providerKey = '',
    this.sex = false,
    this.telephone,
    this.username,
  });

/*  LoginRequestEntity.fromJson(Map<String, dynamic> json) {
    this.password = json['password'] ??'';
    this.Birthday = json['Birthday']??'';
    this.DisplayName = json['DisplayName']??'';
    this.Email = json['Email']??'';
    this.FamilyName = json['FamilyName']??'';
    this.GivenName = json['GivenName']??'';
    this.ImgUrl = json['ImgUrl']??'';
    this.LoginProvider = json['LoginProvider']??'';
    this.ProviderKey = json['ProviderKey']??'';
    this.Sex = json['Sex']??false;
    this.Telephone = json['Telephone']??'';
    this.username = json['username']??'';
  }*/

  Map<String, dynamic> toJson() => {
        'password': password,
        'Birthday': birthday,
        'DisplayName': displayName,
        'Email': email,
        'FamilyName': familyName,
        'GivenName': givenName,
        'ImgUrl': imgUrl,
        'LoginProvider': loginProvider,
        'ProviderKey': providerKey,
        'Sex': sex,
        'Telephone': telephone,
        'username': username,
      };
}
